package com.dididi;

/**
 * @author ：xuzexiang
 * @description：
 * @date ： 2022/1/28 16:44
 */
public enum AppType {
    TYPE_0("11","CUPS"),
    TYPE_1("12","渠道代付");

    private String code;
    private String name;

    AppType(String code, String name){
        this.code  =code;
        this.name = name;
    }

    public static String getRespInfo(String code){
        for (AppType type : AppType.values()) {
            if(type.getCode().equals(code)){
                return type.name;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
